package com.imooc.resouce;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author gcq
 * @Create 2022-01-27
 */
// 注册到容器中
@Component
// 配置文件前缀
@ConfigurationProperties(prefix = "file")
// 属性来源 上线需要更改对应的配置文件名称
@PropertySource("classpath:file-upload-dev.properties")
public class FileUpload {

    // 对应配置文件中的属性
    private String imageUserFaceLocation;

    private String imageServerUrl;

    public String getImageServerUrl() {
        return imageServerUrl;
    }

    public void setImageServerUrl(String imageServerUrl) {
        this.imageServerUrl = imageServerUrl;
    }

    public String getImageUserFaceLocation() {
        return imageUserFaceLocation;
    }

    public void setImageUserFaceLocation(String imageUserFaceLocation) {
        this.imageUserFaceLocation = imageUserFaceLocation;
    }
}